package com.ddchat_server.websocket.call;

/**
 * @Author: XDY.
 * @Email: 2280944114@qq.com
 * @CreateTime: 2023-03-23  00:36
 * @Description: 视频通话消息类型
 * @Version: 1.0
 */
public class CallType {
    /**
     * 请求通话
     */
    public static final String TYPE_REQUEST_CALL = "request-call";
    /**
     * 成功收到请求通话
     */
    public static final String TYPE_RECEIVE_SUCCESS = "receive-success";
    /**
     * 响应请求通话
     */
    public static final String TYPE_REQUEST_CALL_RESPONSE = "request-call-response";
    /**
     * 接收者拒绝通话
     */
    public static final String TYPE_RECEIVE_REFUSED = "receive-refused";
    /**
     * 拒绝响应
     */
    public static final String TYPE_RECEIVE_REFUSED_RESPONSE = "receive-refused";
    /**
     * 取消请求视频
     */
    public static final String TYPE_REQUEST_CANCEL = "request-cancel";
    /**
     * 取消请求视频响应
     */
    public static final String TYPE_REQUEST_CANCEL_RESPONSE = "request-cancel-response";
    /**
     * 接受连接视频通话
     */
    public static final String TYPE_RECEIVE_CONNECTION = "receive-connection";

    /**
     * 接受连接视频通话
     */
    public static final String TYPE_REQUEST_SUCCESS = "request-success";
    /**
     * 媒体协商offer
     */
    public static final String SIGNAL_TYPE_OFFER = "offer";
    /**
     * 媒体协商offer
     */
    public static final String SIGNAL_TYPE_ANSWER = "answer";
    /**
     * 网络协商
     */
    public static final String SIGNAL_TYPE_CANDIDATE = "candidate";

    /**
     * 请求中挂断连接
     */
    public static final String TYPE_REQUEST_CONN_HANDUP = "request-conn-handup";
    /**
     * 接收者挂断连接
     */
    public static final String TYPE_RECEIVE_CONN_HANDUP = "receive-conn-handup";

    /**
     * 挂断连接
     */
    public static final String TYPE_CONN_HANDUP = "conn-handup";
}
